﻿using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;

namespace movie.tool.module.response
{
    public class OperatorResponse
    {
        /// <summary>
        /// true或false,表示请求是否成功
        /// </summary>
        public bool Success { get; set; }
        /// <summary>
        /// 失败的时候,表示失败的消息内容
        /// </summary>
        public string Message { get; set; }
        /// <summary>
        /// 错误码，是一个整数
        /// </summary>
        public int Code { get; set; }

        public static JsonSerializerSettings settings = new JsonSerializerSettings
        {
            ContractResolver = new CamelCasePropertyNamesContractResolver(),
            Formatting = Formatting.Indented
        };
    }
}
